package project1;
import java.util.Scanner;
public class Main4 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("a year");	
		int year = input.nextInt();
		System.out.println(312032486+
				(year*365*24*60*60/7)-
				(year*365*24*60*60/13)+
				(year*365*24*60*60/45));
	   
			
    }
}
